﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Tradex.ComponentModel;

namespace Tradex.Operations {
    
    /// <summary>
    /// The PrincipalKey identifies a Principal.
    /// </summary>
    [Serializable()]
    public sealed class PrincipalKey : Key<Principal> {

        /// <summary>
        /// Constructor taking all values.
        /// </summary>
        /// <param name="code"></param>
        public PrincipalKey(string code) {
            Code = code;
        }

        /// <summary>
        /// Gets the code of the principal.
        /// </summary>
        public string Code { get; private set; }

    }

}
